package com.mycompany.app.util.hibernate;

import java.io.File;

import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

public class SchemaExportUitls {
    public static void main(String[] args) {

        Configuration cfg = new AnnotationConfiguration()
                .configure(new File(
                        "D:\\personal\\sky-drive\\src\\main\\resources\\hibernate\\tools\\hibernate.cfg.xml"));
        SchemaExport schemaExport = new SchemaExport(cfg);
        schemaExport.create(true, true);

    }

}
